<?php


namespace App\Enums\OpenShop\Notify;


use App\Enums\OpenShop\InvestmentPromotion\MainProcessEnum;
use App\Models\OpenShop\Common\OpenShopOrderManagerModel;

class SystemNotifyCacheCode
{

    /**
     * 用户消息列表数据
     *
     * @param $userId
     * @param $type
     * @return string
     */
    public static function getUserNotifyListKey(int $userId, int $type): string
    {
        return sprintf('notify_center:list:' . "%s:%s", $userId, $type);
    }

    /**
     * 用户未读消息列表数据
     *
     * @param $userId
     * @param $type
     * @return string
     */
    public static function getUserUnreadListKey(int $userId, int $type): string
    {
        return sprintf('notify_center:unread_list:' . "%s:%s", $userId, $type);
    }


    /**
     * 弹窗数据
     *
     * @param $userId
     * @param $type
     * @return string
     */
    public static function getUserNotifyPopListKey(int $userId): string
    {
        return sprintf('notify_center:pop_list:' . "%s", $userId);
    }


    /**
     * 消息未读-推送的用户列表
     *
     * @param int $type
     * @return string
     */
    public static function getTypeSendUserList(int $notifyId, int $type): string
    {
        return sprintf('notify_center:type_user_list:' . "%s:%s", $notifyId, $type);
    }

}
